#ifndef MESSAGE_PROCESSOR_H
#define MESSAGE_PROCESSOR_H
//#define MAX_QUEUE_BUF_SIZE 2000
#include "protocol.h"
#define MAX_QUEUE_SIZE 30 // 한번에 저장할수 있는 메세지 큐 제한
struct messageQueue{
	int size;
	int send_fd;
	unsigned char buf[MESSAGE_SIZE];
};
void initQueue(void);
int writeMessage(unsigned char *buf, int size, int sendfd);
struct messageQueue readMessage(void);

#endif
